const app = getApp()
Page({
  data: {
    domainName: app.domainName,
    //zuArr:['U6','U8','U10','U12','U14'],
    zuArr:['U8','U10男子组','U10混合组','U11','U12'],
    zuId:-1
  },
  onLoad() {
   
  },
  choosezu(e){
    this.setData({zuId: e.currentTarget.dataset.id});
  },
  goNext(){
    var _zuId=this.data.zuId;
    if(-1 == _zuId || _zuId < 0){
      this.popMsg("请选择你的组别");
      return;
    }
    wx.request({
      url: app.domainName + 'web/?c=setzu',
      method: 'POST',
      data: {openid:app.globalData.openid, zu:_zuId
      }, header: { 'content-type': 'application/x-www-form-urlencoded' },
      success: function (res) {
         wx.redirectTo({url: '/pages/addqiu/index'})
      }});
    

  },
  goBack(){
    wx.redirectTo({url: '/pages/welcome/index'})
  },
  popMsg(msg){
    wx.showToast({
      title: msg,
      icon: 'none',
      duration: 1500
    })
  }
 
})
